package demo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 87111
 * Date: 2025-06-20
 * Time: 19:40
 */
public class Test {
    public static void drawShapes(Shape shape) {
        shape.print();
    }

    public static void main(String[] args) {
        Rect rect = new Rect();
        Cycle cycle = new Cycle();
        Shape[] shapes = {rect,cycle,rect,cycle};
        for(Shape shape : shapes) {
            drawShapes(shape);
        }
    }
}
